#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
int min(int a,int b,int c)
{
	int current_min;
	if (a < b) current_min = a;
	else current_min = b;
	if (c < current_min) current_min = c;
	return current_min;
}
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	cout << min(a,b,c) << endl;
	return 0;
}